package com.uplooking.pojo;

import java.util.List;

public class TreeVO {

	private Integer id;
	private String text;
	private String icon;
	private String route;
	private String tip;
	private List<TreeVO> nodes;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getRoute() {
		return route;
	}

	public void setRoute(String route) {
		this.route = route;
	}

	public String getTip() {
		return tip;
	}

	public void setTip(String tip) {
		this.tip = tip;
	}

	public List<TreeVO> getNodes() {
		if (nodes != null && nodes.size() == 0) {
			return null;
		}
		return nodes;
	}

	public void setNodes(List<TreeVO> nodes) {
		this.nodes = nodes;
	}

	@Override
	public String toString() {
		return "TreeVO [id=" + id + ", text=" + text + ", icon=" + icon + ", route=" + route + ", tip=" + tip
				+ ", nodes=" + nodes + "]";
	}

}
